package com.hake.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/4/1.
 */
@Service
public class PetCompanyServiceImpl implements PetCompanyService {
    @Autowired
    private JdbcTemplate jdbcTemplate;

    @Override
    public int add(String user_id, String pet_company_name, String pet_company_phone, String pet_legal_person_name, String pet_legal_person_phone, String pet_company_card_type, String pet_company_card_name, String pet_company_place, String pet_company_street, String pet_business_license, String pet_group_no, String pet_legal_person_photo, String pet_name, String pet_type, String pet_sex, String pet_birth, String pet_immune_no, String pet_immune_group, String pet_immune_able_date, String pet_birthday, String pet_id_no, String pet_police_station, String pet_photo_positive, String pet_photo_side){
       return jdbcTemplate.update("insert into t_pet_company(user_id,pet_company_name,pet_company_phone, pet_legal_person_name,pet_legal_person_phone,pet_company_card_type, pet_company_card_name, pet_company_place, pet_company_street, pet_business_license, pet_group_no, pet_legal_person_photo, pet_name, pet_type, pet_sex, pet_birth, pet_immune_no, pet_immune_group,pet_immune_able_date, pet_birthday, pet_id_no, pet_police_station, pet_photo_positive,pet_photo_side) values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",user_id,pet_company_name,pet_company_phone, pet_legal_person_name,pet_legal_person_phone,pet_company_card_type, pet_company_card_name, pet_company_place, pet_company_street, pet_business_license, pet_group_no, pet_legal_person_photo, pet_name, pet_type, pet_sex, pet_birth, pet_immune_no, pet_immune_group,pet_immune_able_date, pet_birthday, pet_id_no, pet_police_station, pet_photo_positive,pet_photo_side);
    }
}


